package com.lovo.atm.service.impl;

import com.lovo.atm.bean.MessageBean;
import com.lovo.atm.dao.IMessgeDao;
import com.lovo.atm.dao.impl.IMessgeDaoImpl;
import com.lovo.atm.service.IMessageService;

import java.util.List;

public class IMessageServiceImpl implements IMessageService {
    private IMessgeDao iMessgeDao = new IMessgeDaoImpl();

    @Override
    public List<MessageBean> findDeal(String code) {

        return iMessgeDao.findDeal(code);
    }

    @Override
    public void addDeal(MessageBean msbean) {
        iMessgeDao.addDeal(msbean);
    }
}
